package common.util;

import java.nio.file.FileSystems;
import java.nio.file.Path;

import org.apache.commons.configuration.Configuration;

public class FileUtil {
	public static final String VIRTUALPATH = "virtual";

	public static Path getRootFileDir(Configuration config) {
		Path target = FileSystems.getDefault().getPath(getRootFileDirStr(config));
		return target;
	}
	
	public static String getRootFileDirStr(Configuration config) {
		return config.getString("file.dir", "/home/demo");
	}
}
